/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

package com.huawei.housekeeper.common.constant;

import org.jose4j.jwk.Use;
import org.jose4j.jws.AlgorithmIdentifiers;

/**
 * 安全认证常量
 *
 * @author Y84241604
 * @since 2022-06-02
 */
public interface SecurityConstants {

    /**
     * kid
     */
    String KEYID = "housekeeper";

    /**
     * issuer
     */
    String ISSUER = KEYID + "@huawei.com";

    /**
     * 长度 至少 1024, 建议 2048
     */
    int DEFAULT_KEY_SIZE = 2048;

    /**
     * Default ALG: RS256
     *
     * @since 1.1.0
     */
    String OIDC_ALG = AlgorithmIdentifiers.RSA_USING_SHA256;

    /**
     * OIDC key use: sig or enc
     *
     * @since 1.1.0
     */
    String USE_SIG = Use.SIGNATURE;

}
